const Redis = require("ioredis");
const redis = new Redis(); // uses defaults unless given configuration object

// ioredis supports all Redis commands:
async function test(params) {
 await   redis.set("foo", "bar"); // 
console.log(await redis.get("foo")); // 
}
test()
